extends RigidBody3D

const TEST_MARKER = preload("res://scenes/test_objects/test_marker.tscn")

@onready var bullet: RigidBody3D = $"."

func _ready() -> void:
	bullet.body_entered.connect(bullet_collided)
	
func bullet_collided(body: Node) -> void:
	var marker = TEST_MARKER.instantiate()
	get_parent().add_child(marker)
	marker.global_position = global_position
	marker.top_level = true
	queue_free()

func _process(delta: float) -> void:
	pass
